arr = [["Crimson","Blood Red","Dark Red"],["Royal Blue", "Baby Blue"],["Olive Green","Light Green", "Emerald Green"]] |
1 | arr = [["Crimson","Blood Red","Dark Red"],["Royal Blue", "Baby Blue"],["Olive Green","Light Green", "Emerald Green"]] |
i = int(i) |
print(arr) |
arr = [] |
arr.append([]) |
i = input() |
for x in range(i): |
print("How many sub arrays do you want to add?") |
i = int(i) |
print(arr) |
arr = [] |
    arr.append([]) |
i = input() |
for x in range(i): |
print("How many sub arrays do you want to add?") |
1 | arr = [] |
2 | print("How many sub arrays do you want to add?") |
3 | i = input() |
4 | i = int(i) |
5 | for x in range(i): |
6 |     arr.append([]) |
7 | print(arr) |
i = input() |
arr = [[],[],[]] |
arr[i].append(1) |
i = int(i) |
print("Which index would you like to add a 1 to") |
print(arr) |
i = input() |
arr = [[],[],[]] |
arr[i].append(1) |
i = int(i) |
print("Which index would you like to add a 1 to") |
print(arr) |
1 | arr = [[],[],[]] |
2 | print("Which index would you like to add a 1 to") |
3 | i = input() |
4 | i = int(i) |
5 | arr[i].append(1) |
6 | print(arr) |
print(arr) |
arr[i].append(1) |
arr = [[],[],[]] |
i = input() |
print("Which index would you like to add a 1 to") |
i = int(i) |
for x in range(5): |
print(arr) |
    arr[i].append(1) |
arr = [[],[],[]] |
    i = input() |
    print("Which index would you like to add a 1 to") |
    i = int(i) |
for x in range(5): |
1 | arr = [[],[],[]] |
2 | for x in range(5): |
3 |     print("Which index would you like to add a 1 to") |
4 |     i = input() |
5 |     i = int(i) |
6 |     arr[i].append(1) |
7 | print(arr) |
arr = [[],[],[]] |
for x in range(3): |
i = input() |
print(arr) |
print("Enter a value") |
arr[x].append(i) |
arr = [[],[],[]] |
for x in range(3): |
i = input() |
print(arr) |
print("Enter a value") |
    arr[x].append(i) |
1 | arr = [[],[],[]] |
2 | print("Enter a value") |
3 | i = input() |
4 | for x in range(3): |
5 |     arr[x].append(i) |
6 | print(arr) |
arrayZero[1].append(6) |
print(arrayZero) |
arrayZero = [] |
arrayZero.append([1]) |
arrayZero.append([0]) |
arrayZero[2].append(5) |
arrayZero.append([1,2,3]) |
arrayZero[0].append(4) |
arrayZero.append([0]) |
1 | arrayZero = [] |
2 | arrayZero.append([1,2,3]) |
3 | arrayZero[0].append(4) |
4 | arrayZero.append([0]) |
5 | arrayZero.append([0]) |
6 | arrayZero.append([1]) |
7 | arrayZero[2].append(5) |
8 | arrayZero[1].append(6) |
9 | print(arrayZero) |
for x in range(i): |
arr = [] |
i = input() |
arr1 = [1,1,1] |
print(arr) |
arr.append(arr1) |
print("How many sub arrays would you like?") |
i = int(i) |
for x in range(i): |
arr = [] |
i = input() |
arr1 = [1,1,1] |
print(arr) |
    arr.append(arr1) |
print("How many sub arrays would you like?") |
i = int(i) |
1 | arr = [] |
2 | arr1 = [1,1,1] |
3 | print("How many sub arrays would you like?") |
4 | i = input() |
5 | i = int(i) |
6 | for x in range(i): |
7 |     arr.append(arr1) |
8 | print(arr) |
for x in range(2): |
subarr.append(s) |
print("Enter a student name") |
s = input() |
arr = [] |
print("Enter a subject they do") |
arr.append(subarr) |
subarr.append(n) |
for x in range(3): |
n = input() |
subarr = [] |
for x in range(2): |
        subarr.append(s) |
    print("Enter a student name") |
        s = input() |
arr = [] |
        print("Enter a subject they do") |
    arr.append(subarr) |
    subarr.append(n) |
    for x in range(3): |
    n = input() |
    subarr = [] |
1 | arr = [] |
2 | for x in range(2): |
3 |     subarr = [] |
4 |     print("Enter a student name") |
5 |     n = input() |
6 |     subarr.append(n) |
7 |     for x in range(3): |
8 |         print("Enter a subject they do") |
9 |         s = input() |
10 |         subarr.append(s) |
11 |     arr.append(subarr) |
i = input() |
continue |
if i.isdigit() == False or int(i) < 0 or int(i) > 4: |
print("Enter an index") |
print("Invalid index") |
while True: |
print("Enter an item") |
i2 = input() |
arr[i].append(i2) |
arr = [[],[],[],[],[]] |
print(arr) |
    i = input() |
        continue |
    if i.isdigit() == False or int(i) < 0 or int(i) > 4: |
    print("Enter an index") |
        print("Invalid index") |
while True: |
    print("Enter an item") |
    i2 = input() |
    arr[i].append(i2) |
arr = [[],[],[],[],[]] |
    print(arr) |
1 | arr = [[],[],[],[],[]] |
2 | while True: |
3 |     print("Enter an index") |
4 |     i = input() |
5 |     if i.isdigit() == False or int(i) < 0 or int(i) > 4: |
6 |         print("Invalid index") |
7 |         continue |
8 |     print("Enter an item") |
9 |     i2 = input() |
10 |     arr[i].append(i2) |
11 |     print(arr) |
sarr.append(1) |
print("How many sub arrays?") |
sarr = [] |
for x in range(s1): |
print(arr) |
s2 = input() |
arr = [] |
s.append(sarr) |
print("How many 1s?") |
for x in range(s2): |
s1 = input() |
    sarr.append(1) |
print("How many sub arrays?") |
sarr = [] |
for x in range(s1): |
print(arr) |
s2 = input() |
arr = [] |
    s.append(sarr) |
print("How many 1s?") |
for x in range(s2): |
s1 = input() |
1 | print("How many sub arrays?") |
2 | s1 = input() |
3 | print("How many 1s?") |
4 | s2 = input() |
5 | arr = [] |
6 | sarr = [] |
7 | for x in range(s2): |
8 |     sarr.append(1) |
9 | for x in range(s1): |
10 |     s.append(sarr) |
11 | print(arr) |
arr = [] |
sarr = [] |
animals = ["🐕","🦌","🐘","🦇","🦔","🦦","🐧","🦗"] |
for y in range(4): |
r = random.randint(0, len(animals) - 1) |
print(arr) |
sarr.append(animals[r]) |
for x in range(6): |
import random |
arr.append(sarr) |
arr = [] |
    sarr = [] |
animals = ["🐕","🦌","🐘","🦇","🦔","🦦","🐧","🦗"] |
    for y in range(4): |
        r = random.randint(0, len(animals) - 1) |
print(arr) |
        sarr.append(animals[r]) |
for x in range(6): |
import random |
    arr.append(sarr) |
1 | import random |
2 | animals = ["🐕","🦌","🐘","🦇","🦔","🦦","🐧","🦗"] |
3 | arr = [] |
4 | for x in range(6): |
5 |     sarr = [] |
6 |     for y in range(4): |
7 |         r = random.randint(0, len(animals) - 1) |
8 |         sarr.append(animals[r]) |
9 |     arr.append(sarr) |
10 | print(arr) |
print("Enter an input") |
arr = [[],[],[]] |
for x in range(3): |
i = input() |
for y in range(3): |
print(arr) |
arr[x].append(i) |
        print("Enter an input") |
arr = [[],[],[]] |
for x in range(3): |
        i = input() |
    for y in range(3): |
print(arr) |
        arr[x].append(i) |
1 | arr = [[],[],[]] |
2 | for x in range(3): |
3 |     for y in range(3): |
4 |         print("Enter an input") |
5 |         i = input() |
6 |         arr[x].append(i) |
7 | print(arr) |
for x in range(9): |
arr = [[],[],[]] |
i = input() |
print(arr) |
print("Enter an input") |
arr[x//3].append(i) |
for x in range(9): |
arr = [[],[],[]] |
    i = input() |
print(arr) |
    print("Enter an input") |
    arr[x//3].append(i) |
1 | arr = [[],[],[]] |
2 | for x in range(9): |
3 |     print("Enter an input") |
4 |     i = input() |
5 |     arr[x//3].append(i) |
6 | print(arr) |
7 |      |
print("Invalid format") |
print(arr) |
continue |
while True: |
arr = [[],[],[]] |
print("Enter a string in the format: StringA,StringB,StringC") |
if len(arr) != 3: |
i = input() |
arr[x].append(sarr[x]) |
for x in range(3): |
sarr = i.split(",") |
        print("Invalid format") |
    print(arr) |
        continue |
while True: |
arr = [[],[],[]] |
    print("Enter a string in the format: StringA,StringB,StringC") |
    if len(arr) != 3: |
    i = input() |
        arr[x].append(sarr[x]) |
    for x in range(3): |
    sarr = i.split(",") |
1 | arr = [[],[],[]] |
2 | while True: |
3 |     print("Enter a string in the format: StringA,StringB,StringC") |
4 |     i = input() |
5 |     sarr = i.split(",") |
6 |     if len(arr) != 3: |
7 |         print("Invalid format") |
8 |         continue |
9 |     for x in range(3): |
10 |         arr[x].append(sarr[x]) |
11 |     print(arr) |
for y in range(h): |
if x == 0 or y == 0 or y == 19 or x == 19: |
h = random.randint(2,4) |
sub.append("🌲") |
ry = random.randint(5,15) |
twoArr[rx+x][ry+y] = "🌊" |
for x in range(20): |
sub.append("⛰ ") |
print() |
r = random.randint(1,10) |
print(twoArr[x][y],end="") |
if r == 1: |
for x in range(w): |
else: |
import random |
twoArr = [] |
sub.append("🟩") |
else: |
for y in range(20): |
for y in range(len(twoArr[x])): |
w = random.randint(2,4) |
sub = [] |
rx = random.randint(5,15) |
twoArr.append(sub) |
for x in range(len(twoArr)): |
    for y in range(h): |
        if x == 0 or y == 0 or y == 19 or x == 19: |
h = random.randint(2,4) |
                sub.append("🌲") |
ry = random.randint(5,15) |
        twoArr[rx+x][ry+y] = "🌊" |
for x in range(20): |
            sub.append("⛰ ") |
    print() |
            r = random.randint(1,10) |
        print(twoArr[x][y],end="") |
            if r == 1: |
for x in range(w): |
            else: |
import random |
twoArr = [] |
                sub.append("🟩") |
        else: |
    for y in range(20): |
    for y in range(len(twoArr[x])): |
w = random.randint(2,4) |
    sub = [] |
rx = random.randint(5,15) |
    twoArr.append(sub) |
for x in range(len(twoArr)): |
1 | import random |
2 | twoArr = [] |
3 | for x in range(20): |
4 |     sub = [] |
5 |     for y in range(20): |
6 |         if x == 0 or y == 0 or y == 19 or x == 19: |
7 |             sub.append("⛰ ") |
8 |         else: |
9 |             r = random.randint(1,10) |
10 |             if r == 1: |
11 |                 sub.append("🌲") |
12 |             else: |
13 |                 sub.append("🟩") |
14 |     twoArr.append(sub) |
15 | rx = random.randint(5,15) |
16 | ry = random.randint(5,15) |
17 | w = random.randint(2,4) |
18 | h = random.randint(2,4) |
19 | for x in range(w): |
20 |     for y in range(h): |
21 |         twoArr[rx+x][ry+y] = "🌊" |
22 | |
23 | for x in range(len(twoArr)): |
24 |     for y in range(len(twoArr[x])): |
25 |         print(twoArr[x][y],end="") |
26 |     print() |
27 |          |